),] 4 compose_url = ''. join (compose_tmp_url_list) 5 return compose_url
2. obtain the maximum number of pages on the index page
# Retrieve the url list of the current index page count def get_info_pn_list (search_list): fin_search_list = [] for I in range (len (search_list )): print ('>>> capturing % s' % search_list [I] [: 3]) search_url = search_list [I] [3] try: page = get_page (search_url) failed t: print ('get page timeout') continue soup = BS (page, 'lxml') # obtain the maximum number of
/ershoufang/--r-Chaoyang |w-5 line |b-working body
1 # Create a combination URL based on parameters
2 def get_compose_url (Compose_tmp_url, Tag_args, Key_args):
3 compose_tmp_url_list = [ Compose_tmp_url, ' | ' If Tag_args!= ' r ' Else ', Tag_args, Parse.quote (Key_args),]
4 compose_url = '. Join (compo Se_tmp_url_list)
5 return Compose_url
Second, get the maximum number of index pages
# Gets the URL list for the number of pages in the current index
def get_info_pn_lis
Let's take a look at the effect:
The specific function is:
1. Only one page can display all the content.
2. When you are on display all, click hide and collapse.
3. When you display all your content, click expand to hide your content. The original "hide" is changed to "Expand"
The clicked options are displayed in full, and "Expand" is changed to "hide"
========================================================== ==========
Some code:
========================================================== ==
First look at the effect:
the specific function is:
1. Only one of the top pages on the page shows the full content.
2. When you are in full display, click on their own collection, their own collection.
3. When you are in full display, click on the other spread is, their content is hidden, the original "Put away" into "expansion"
The clicked option is all displayed, "expand" to "close"
=================================================
part of the code:
=======================================
" : "2053.89", "Count" :395, "Avgprice" : "5.20" }}{ "_id" : "Josh", "value" :{ "Amount" : "1409.26", "Count" : 292, "Avgprice" : "4.83" }}{ "_id" : "Ken", "value" : { "Amount" : "1547.77", "Count" :313, "Avgprice" : "4.94" NBSP;} }5. Count SKUs with a unit price greater than 6, per user's purchase quantity. ( filter data subset to do Mr)This is relatively simple, just need to call the 1 in the Mr When the filter query can be, the other unchanged.Codedb.test.mapReduce (map,reduce,{query:{price:{
: 20px ;}. ml1p {margin-left: 1%;}/* right margin */. mr5 {margin-right: 5px ;}. p10 {padding: 10px ;}. pt5 {padding-top: 5px ;}. pb5 {padding-bottom: 5px ;}. pl5 {padding-left: 5px ;}. pr5 {padding-right: 5px ;}
3: The introduction to the common.css file is first to analyze the components of each page. If there is the same performance, it will be extracted as a common class. After that, the page.css file will be imported to different pages to express
=button]{-webkit-appearance:none}/* prevent the button from changing color on the Apple phone */input[type=text],input[ type=tel],input[type=number],input[type=email],input[type=file]{outline:none;}/*html,body*/html{_text-overflow:ellipsis;font-size:62.5%}/* Adaptive Project When 1rem=10px*/body{ Font-family: "Microsoft Jas Black", Tahoma,arial,roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", sans-self;} /*line-height*/.lh40{line-height:40px;} /*margin*/.mt5{margin-top:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.